<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/main/stylesheet.jsp"%>
<link rel="stylesheet" type="text/css" href="${baseurl}/styles/frameword/css/list.css" />
<script src="${baseurl}/styles/frameword/js/list.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	var typejson = <wb:html wbCode="pro-client-type" type="json" name="" />
	$(function() {
		var url = "/pro-client-version/";
		var columns = [
				{
					field : 'version',
					title : '版本号'
				},
				{
					field : 'clientType',
					title : '终端类型',
					formatter : function(value, row, index) {
						return typejson[value];
					}
				},
				{
					field : 'downloadUrl',
					title : '下载地址'
				},
				{
					field : 'alertMessage',
					title : '升级内容'
				},
				{
					field : 'addTime',
					title : '添加时间',
					formatter : function(value, row, index) {
						return format(new Date(value), 'yyyy-MM-dd hh:mm:ss');
					}
				},
				{
					field : 'operate',
					title : '操作',
					align : 'center',
					events : getEventsDefault(url),
					formatter : function(value, row, index) {
						return [
								'<span class="BtnOfDetails pointer glyphicon glyphicon-list" style="margin-right:15px;">详情</span>',//
								'<span class="BtnOfDel pointer glyphicon glyphicon-remove" style="margin-right:15px;">删除</span>', ]
								.join('');
					},
				} ];
		initListDefault(url, columns)
	})
</script>
</head>
<body class="container-fluid">
	<form class="bs-example bs-example-form" role="form" id="form1">
		<table class="table noline">
			<tbody>
				<tr>
					<td>
						<div class="input-group">
							<span class="input-group-addon explain">终端类型</span>
							<wb:html wbCode="pro-client-type" name="clientType" nullvalue="true" type="select" />
						</div>
					</td>
					<td>
						<div class="input-group">
							<span class="input-group-addon explain">版本号</span> <input type="text" name="version" class="form-control">
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: right;">
						<div class="btn-group">
							<button type="button" class="btn btn-success" id="add-button" data-url="/pro-client-version/add">
								<i class="glyphicon glyphicon-plus"></i> 添加
							</button>
							<button type="button" class="btn btn-info" id="search-button">
								<i class="glyphicon glyphicon-search"></i> 搜索
							</button>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<table id="table1">
	</table>
</body>

</html>